package lol.clann.bukkit.pluginboot.model;

/**
 * @author pyz
 * @date 2018/6/27 下午8:25
 */
public class IndexedWrapper<T> {

    private final T object;
    private int index;

    public IndexedWrapper(int index, T object) {
        this.index = index;
        this.object = object;
    }

    public int getIndex() {
        return index;
    }

    public IndexedWrapper<T> setIndex(int index) {
        this.index = index;
        return this;
    }

    public T getObject() {
        return object;
    }
}
